package com.bwie.exception;

/**
 * 登录异常
 *
 * @author <a href="mailto:3364114353@qq.com">liuwenliang</a>
 * @version 1.0
 * @description: 登录异常
 * @date 2025/9/9 10:12
 */
public class LoginException extends RuntimeException{

    //状态码
    private int code;
    //异常信息
    private String message;

    public LoginException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public LoginException(String message) {
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
